<template>
  <div>
<img :src="serviceInfo.imgUrl" alt="">
<p class="servic-name" @click="$router.push({name:serviceInfo.path})">{{serviceInfo.name}}</p>
<a-icon type="right" />
<hr>
  </div>
</template>

<script>
export default {
  props:{
      serviceInfo:{
          type:Object
      }
  }
}

</script>
<style lang="scss" scoped>
div {
  height: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  img {
    height: 1.5rem;
  }
  p {
    flex-grow: 1;
    margin: 0px;
    font-size: 1rem;
    color: $font-color;
    margin-left: $common-margin;
    border-radius: $common-border-radius;
  }
}
</style>
